#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;

//@file   : null
//@author : Chizuru
//@date   : 2024/4/1
//@brief  : null

int main(void) {
    printf("手牌数量");
    int cards_num;
    scanf("%d",&cards_num );


    const char suits[4] = {'C','D','H','S'};
    const char points[13] = { 'A','2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K' };

    bool flags[4][13] = { {0} };
    srand(time(NULL));

    while (cards_num) {
        int suits_idx = rand() % 4;
        int points_idx = rand() % 13;
        
        
        if (flags[suits_idx][points_idx]) {
            continue;
        }
        flags[suits_idx][points_idx] = 1;

        printf("%c%c ",suits[suits_idx],points[points_idx]);
        cards_num--;
    }



    return 0;

}
